import { network } from '@/utils';
import { TableListParams, InitInfoParams } from './data';

import { partner } from '../../../../../config/Apis';

export async function queryRechargeDetail(params: TableListParams) {
  params._content_type = 'json';
  return network.get(partner.consume_stat_index, {
    params,
  });
}

export async function queryPartnersList(params: InitInfoParams) {
  params._content_type = 'json';
  return network.get(partner.franchisee_list, {
    params,
  });
}

export async function queryGardenList(params: InitInfoParams) {
  return network.get(partner.common_area_garden_search, {
    params,
  });
}
